module.exports = {
  devServer: {
    port: 8080,
    proxy: {
      [process.env.VUE_APP_BASE_APIS]: {
        // target: 'http://39.105.217.58:8182',
        target: 'https://test-omr-api.bsedu.com',
        changeOrigin: true,
        pathRewrite: {
          ['^' + process.env.VUE_APP_BASE_APIS]: ''
        }
      }
    }
  },
  lintOnSave: false,
  chainWebpack: config => {
    config.optimization.minimizer('terser').tap(args => {
      args[0].terserOptions.compress.drop_console = true
      return args
    })
  }
} 